<template>
	<view class="main">
		<view class="navi-bar">
			<view class="navi-back" @click="goBack">
				<
			</view>
			<view class="navi-title">
				我的关注
			</view>
		</view>
		<u-gap height="100" bgColor="#fff"></u-gap>
		<view class="fol-list">
			<view class="fol-item" @click="naviTo(f.user_id)" v-for="(f, i) in FollowList" :key="f.content_id">
				<view class="fol-image">
					<image :src="f.web_url" mode=""></image>
				</view>
				<view class="fol-info">
					<view class="info-name">
						{{f.user_name}}
					</view>
					<view class="info-sum">
						{{f.summary}}
					</view>
				</view>
				<view class="fol-btn">
					>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		http
	} from '../../untils/http.js'
	
	const url = 'user/follow_list?uid=8878093&last_id=0&type=0'
	
	export default {
		data() {
			return {
				FollowList:[]
			}
		},
		created() {
			http(url).then(res => {
				this.FollowList = res.data
				console.log(this.FollowList);
			})
		},
		methods: {
			goBack() {
				// 返回上一级并刷新当前页面
				this.$router.go(-1)
			},
			naviTo(id) {
				uni.navigateTo({
					url: '/pages/AuthorDetails/AuthorDetails?id=' + id
				})
			}
		}
	}
</script>

<style lang="scss">
	* {
		box-sizing: border-box;
	}
	
	.main {
		background-color: #f1f1f1;
	}
	
	.navi-bar {
		position: fixed;
		width: 750rpx;
		height: 100rpx;
		line-height: 100rpx;
		z-index: 1000;
		background-color: #fff;
		border-bottom: 1px solid #dfdfdf;
		
		.navi-back {
			margin-left: 15px;
			float: left;
		}
		
		.navi-title {
			margin-right: 28px;
			text-align: center;
		}
	}
	
	.fol-list {
		width: 750rpx;
	}
	
	.fol-item {
		padding: 15px 10px 10px 10px;
		margin-bottom: 5px;
		display: flex;
		width: 100%;
		background-color: #fff;
		
		.fol-image {
			margin-right: 10px;
			flex: 1;
			
			image {
				width: 80rpx;
				height: 80rpx;
				border-radius: 999px;
			}
		}
		
		.fol-info {
			flex: 8;
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			
			.info-name {
				font-size: 14px;
			}
			
			.info-sum {
				margin-bottom: 5px;
				font-size: 10px;
				color: #8b8b8b;
			}
		}
		
		.fol-btn {
			padding-top: 6px;
			flex: 1;
			text-align: center;
			color: #8b8b8b;
		}
	}
</style>
